﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using InfoSite.Data;
using InfoSite.Tools;

namespace WebClient.Master
{
    public partial class ViewMain : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                List<SiteContent> sc = SiteContent.ListAllContent((int)EnumHelper.ContentType.Partners, true);
                if (sc != null && sc.Count > 0)
                {
                    SiteContent targetSiteContent = sc.SingleOrDefault();
                    if (targetSiteContent != null)
                    {
                        lPartners.Text = targetSiteContent.Content;
                    }
                }
            }
        }
    }
}